package Day003_多态_内部类.demo005引用类型转换;

public class Cat extends Animal {
    int num = 10;
    @Override
    public void eat() {
        System.out.println("猫吃鱼...");
    }
    //子类独有方法
    public void catchMouse(){
        System.out.println("猫抓老鼠...");
    }
}
